<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{% block title %}{% endblock %}</title>
    <link rel="stylesheet" href="/static/bootstrap4/css/bootstrap.css" type="text/css">
    {% block header %}
    {% endblock %}
</head>
<body class="container">
<div class="row">
    <ul class="nav">
        <li class="nav-item">
            <a class="nav-link" href="/">首页</a>
        </li>
        <li class="nav-item">
            <a class="nav-link active" href="{% url 'al120:index' %}">填写</a>
        </li>
        <li class="nav-item">
            <a class="nav-link" href="{% url 'al120:view' %}">查看</a>
        </li>
        <li class="nav-item">
            <a class="nav-link" href="{% url 'al120:chart' %}">趋势图</a>
        </li>
        <li class="nav-item">
            {% if request.user.is_authenticated %}
                <a class="nav-link" href="/accounts/signout/?next=/" tabindex="-1">注销</a>
            {% else %}
                <a class="nav-link" href="#"
                   onclick="javascript:location.href='/accounts/signin/?next='+encodeURIComponent(location.href)"
                   tabindex="-1">登录</a>
            {% endif %}
        </li>
        <li class="nav-item">
            <a class="nav-link" href="{% url 'al120:about' %}" tabindex="-1" aria-disabled="true">关于</a>
        </li>
    </ul>
</div>
{% block content %}
{% endblock %}
</body>
</html>
<script src="/static/jquery/jquery-3.5.1.js"></script>
<script src="/static/bootstrap4/js/bootstrap.js"></script>
<script src="/static/moment.min.js"></script>
{% block script %}
{% endblock %}
